<?php

class sfWidgetFCKFormTextarea extends sfWidgetForm
{
  protected function configure($options = array(), $attributes = array())
  {
  	$this->setAttribute('rows', 20);
  	$this->setAttribute('cols', 100);
  	
  	$this->setOptions($options);
  }
  
  public function render($name, $value = null, $attributes = array(), $errors = array())
  {
  	$formFCK = new sfRichTextEditorFCK();
  	$formFCK->initialize($name, $value, $attributes);
  	
  	return $formFCK->toHTML();
  }
}
